<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<form id="pagerForm" method="post" action="privilegedeit">
	<input type="hidden" name="pageNum" value="1" />
	<input type="hidden" name="numPerPage" value="<s:property value="pm.numPerPage"/>" />
</form>
<style type="text/css">
 		table.imagetable {
			font-family: verdana,arial,sans-serif;
			font-size:14px;
			color:#333333;
			border-width: 1px;
			border-color: #999999;
			border-collapse: collapse;}
		table.imagetable th {
			width:880px;
			height:10px;
			border-width: 1px;
			padding: 10px;
			border-style: solid;
			border-color: #999999;}
		table.imagetable td {
			width:550px;
			height:60px;
			border-width: 1px;
			padding: 10px;
			border-style: solid;
			border-color: #999999;
			}
		.imagetable td span{
			display: inline-block;
			width:210px;
			height:40px;
			line-height: 40px;
		}
		
		 
 	</style>

<h2 class="contentTitle">分配权限</h2>
 
<div class="pageContent">
	
	<form method="post" action="givePrivilege" class="pageForm required-validate"  onsubmit="return validateCallback(this, navTabAjaxDone);">
		<div class="pageFormContent nowrap" layoutH="97">
		    
				<table align="center" class="imagetable">
				 		 	<caption style="margin-bottom:20px;">
				 		 		赋予助管权限列表
				 		 	</caption>
						
							<tr>
								<td>								
								  <s:if test="showPrivilege[0]==true">
									<input type="checkbox" name="privilege" checked="checked" id="c1"  value="Device_Add" >
								  </s:if>	
								  <s:else>
									<input type="checkbox" name="privilege" id="c1"  value="Device_Add" >
								  </s:else>							
								  								
									<label for="c1" >添加设备权限</label>
								</td>
								<td>
								 <s:if test="showPrivilege[1]==true">
									<input type="checkbox" name="privilege" checked="checked" id="c2" value="Device_Modify">
								 </s:if>
								 <s:else>
									<input type="checkbox" name="privilege" id="c2" value="Device_Modify">
								 </s:else>
								
									<label for="c2" >修改设备权限</label>
								</td>
								<td>
								<s:if test="showPrivilege[2]==true">
									<input type="checkbox" name="privilege" checked="checked" id="c3" value="Device_BatchDelete">
								</s:if>
								<s:else>
									<input type="checkbox" name="privilege" id="c3" value="Device_BatchDelete">
								</s:else>
									<label for="c3">删除设备权限</label>
								</td>
							</tr>
							<tr>
								<td>
								<s:if test="showPrivilege[3]==true">
									<input type="checkbox" name="privilege" checked="checked" id="c4" value="Room_Add">
								</s:if>
								<s:else>
									<input type="checkbox" name="privilege" id="c4" value="Room_Add">
								</s:else>
								
									<label for="c4">添加房间权限</label>
								</td>
								<td>
							    <s:if test="showPrivilege[4]==true">
									<input type="checkbox" name="privilege" checked="checked" id="c5" value="Room_Modify">
							    </s:if>
							    <s:else>
									<input type="checkbox" name="privilege" id="c5" value="Room_Modify">
							    </s:else>
							    
									<label for="c5">修改房间权限</label>
								</td>
								<td>
							    <s:if test="showPrivilege[5]==true">		
									<input type="checkbox" name="privilege" checked="checked" id="c6" value="Room_BatchDelete">
								</s:if>
								<s:else>
									<input type="checkbox" name="privilege" id="c6" value="Room_BatchDelete">
								</s:else>
									<label for="c6">删除房间权限</label>
								</td>
							</tr>
						
		       </table>	
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">确定</button></div></div></li>
				<li><div class="buttonActive"><div class="buttonContent"><button type="reset">重置</button></div></div></li>
			</ul>
		</div>
	</form>
	
</div>

